<div id="page_tag">
<%if @pages%>
<%unless @pages.page_count ==1%>
<h1>结果页码：</h1>
 <%= if @pages.current.previous
	           link_to("<<前一页", {:page => @pages.current.previous,:search=>@query})
	       else
	           "<<前一页"
	       end%><span style="margin:5px;"><%=pagination_links(@pages,{:params=>{:search=>@query}})%></span><%= if @pages.current.next
	           link_to("后一页>>", {:page => @pages.current.next,:search=>@query}) 
	       else
	           "后一页>>"
	       end%>
<%end%>
<%end%>
</div>
